import { ErrorCode } from './error-code';
export namespace NResponse {
    type IQuery<T> = Promise <{
        code: ErrorCode,
        msg: string,
        data: T
    }>
    export type  IGet<T> =  IQuery<T>
    export type IPost<T = string>  =  IQuery<T>;
    export type IGetList<T> = IQuery<{total: number, datas: T}>;
    export type IPut<T = string> = IQuery<T>
    export type IDelete<T = string> = IQuery<T>
}